package org.anderground.internal.graphics.impl;

import org.anderground.internal.graphics.abstaractions.AbstractRectF;

import android.graphics.RectF;

public class AndroidRectF implements AbstractRectF {

	public static RectF cast(org.anderground.core.graphics.RectF aRect) {
		return ((AndroidRectF) (aRect.getDelegate())).getRectF();
	}

	private RectF rectF;

	public AndroidRectF(RectF rectangleF) {
		this.rectF = rectangleF;
	}

	public float getBottom() {
		return rectF.bottom;
	}

	public float getLeft() {
		return rectF.left;
	}

	public float getRight() {
		return rectF.right;
	}

	public float getTop() {
		return rectF.top;
	}

	public float height() {
		return rectF.height();
	}

	public float width() {
		return rectF.width();
	}

	public void set(float left, float top, float right, float bottom) {
		rectF.set(left, top, right, bottom);
	}

	public RectF getRectF() {
		return rectF;
	}

}
